package com.yl.dto;

import com.yl.model.Orders;

public class OrdersDTO extends Orders {
	private String user_name;
	private String minDate;
	private String maxDate;
	private int page;
	private int limit;
	public String getUser_name() {
		return user_name;
	}
	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}
	public String getMinDate() {
		return minDate;
	}
	public void setMinDate(String minDate) {
		this.minDate = minDate;
	}
	public String getMaxDate() {
		return maxDate;
	}
	public void setMaxDate(String maxDate) {
		this.maxDate = maxDate;
	}
	public int getPage() {
		return (page-1)*getLimit();
	}
	public void setPage(int page) {
		this.page = page;
	}
	public int getLimit() {
		return limit;
	}
	public void setLimit(int limit) {
		this.limit = limit;
	}
	@Override
	public String toString() {
		return "OrdersDTO [user_name=" + user_name + ", minDate=" + minDate + ", maxDate=" + maxDate + ", page=" + page
				+ ", limit=" + limit + "]";
	}
}
